package Cache;

import junit.framework.TestCase;
/*
 * This class we perform a junit test for the cache
 * 
 */
public class CacheTest extends TestCase {
	Cache myCache=new Cache(3);
	String key;
	String val;
	String key2;
	String val2;
	protected void setUp() {
        key= "yossi";
        val="9888888";
        key2="mm";
        val2="3333";
    }

	 public void testing() {
	        myCache.putTo(key, val);
	        myCache.putTo(key2, val2);
	        assertTrue(myCache.getVal(key)=="9888888" );
	  }
	 

 }
